﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_page.Master" AutoEventWireup="true" CodeBehind="Activity-List.aspx.cs" Inherits="SmartSpace.WebApp.Modules.Workflow.Activity_List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentBody" runat="server">
    <h1>活动列表</h1>
    <div>
    <asp:HyperLink ID="_ctlLinkCreate" runat="server">创建</asp:HyperLink>
    </div>
    <table>
        <tr>
            <th>
                初始活动
            </th>
            <th>
                编号
            </th>
            <th>
                标题
            </th>
            <th>
                操作
            </th>
        </tr>
        <asp:Repeater ID="_ctlList" runat="server">
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Eval("IsInitial") %>
                    </td>
                    <td>
                        <%# Eval("Code") %>
                    </td>
                    <td>
                        <%# Eval("Caption") %>
                    </td>
                    <td>
                        <a href="Activity-List.aspx?wfid=<%=WorkflowId %>&actid=<%# Eval("Id") %>" target="_self">查看事件</a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>

    <h1>事件列表</h1>
    <asp:HyperLink ID="_ctlLinkCreateEvent" runat="server">创建</asp:HyperLink>
    <table>
        <tr>
            <th>
                编号
            </th>
            <th>
                标题
            </th>
            <th>
                目标活动
            </th>
            <th>
                操作
            </th>
        </tr>
        <asp:Repeater ID="_ctlListEvent" runat="server">
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Eval("Code") %>
                    </td>
                    <td>
                        <%# Eval("Caption") %>
                    </td>
                    <td>
                        <%# GetActivityCaption((Guid)Eval("ToActivityId")) %>
                    </td>
                    <td>
                        <a href="Activity-List.aspx?wfid=<%=WorkflowId %>&actid=<%# Eval("Id") %>" target="_self">查看事件</a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>
